VERSION 5.00
Begin VB.Form frmDebugPassword 
   BackColor       =   &H00FFFFFF&
   Caption         =   "Enter Password"
   ClientHeight    =   1575
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   Icon            =   "frmDebugPassword.frx":0000
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form1"
   ScaleHeight     =   1575
   ScaleWidth      =   4680
   StartUpPosition =   1  'CenterOwner
   Begin VB.CommandButton cmdCancel 
      Appearance      =   0  'Flat
      BackColor       =   &H00E0E0E0&
      Caption         =   "&Cancel"
      Height          =   315
      Left            =   2640
      MaskColor       =   &H0080C0FF&
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   1080
      UseMaskColor    =   -1  'True
      Width           =   1215
   End
   Begin VB.CommandButton cmdContinue 
      Appearance      =   0  'Flat
      BackColor       =   &H00E0E0E0&
      Caption         =   "C&ontinue"
      Height          =   315
      Left            =   840
      MaskColor       =   &H00E0E0E0&
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   1080
      Width           =   1215
   End
   Begin VB.TextBox txtPassword 
      Height          =   315
      IMEMode         =   3  'DISABLE
      Left            =   1140
      PasswordChar    =   "*"
      TabIndex        =   0
      Top             =   600
      Width           =   2295
   End
   Begin VB.Label Label2 
      Alignment       =   2  'Center
      BackColor       =   &H00FFFFFF&
      Caption         =   "Please enter password."
      Height          =   195
      Left            =   480
      TabIndex        =   4
      Top             =   360
      Width           =   3735
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      BackColor       =   &H00FFFFFF&
      Caption         =   "Restricted Access."
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000000C0&
      Height          =   195
      Left            =   480
      TabIndex        =   3
      Top             =   120
      Width           =   3735
   End
End
Attribute VB_Name = "frmDebugPassword"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'---------------------------------------------------------------------------------------
' Procedure : cmdCancel_Click()
' DateTime  : 10/12/2005
' Purpose   : Hide the form and clear the password
'---------------------------------------------------------------------------------------
'
Private Sub cmdCancel_Click()
    On Error GoTo EH
    
    txtPassword.SetFocus
    txtPassword = ""
    Me.Hide
    If frmShip.Visible Then frmShip.SetFocus
    
    Exit Sub

EH:
    MsgBox Err.Description, vbCritical, "frmDebugPassword.cmdCancel_Click"

End Sub
'---------------------------------------------------------------------------------------
' Procedure : cmdContinue_Click()
' DateTime  : 10/12/2005
' Purpose   : Validates password
'---------------------------------------------------------------------------------------
'
Private Sub cmdContinue_Click()
    
    On Error GoTo EH
    
    If txtPassword = "NASCAR11" Then
        g_blnDebug = True
        frmShip.StatusBar1.Panels(2) = "Debug Enabled"
        intRet = MsgBox("        Turn on Auto-Send?", vbYesNo + vbDefaultButton2, "Debug Auto-Send")
        If intRet = vbYes Then
            frmDebug.chkAutoSend = 1
        Else
            frmDebug.chkAutoSend = 0
        End If
        If frmShip.Visible Then frmShip.SetFocus
        txtPassword = ""
        Me.Hide
    Else
        MsgBox "Invalid Password", vbExclamation, "Access Denied"
        txtPassword.SetFocus
        txtPassword = ""
    End If
    
    Exit Sub

EH:
    MsgBox Err.Description, vbCritical, "frmDebugPassword.cmdContinue_Click"

End Sub
'---------------------------------------------------------------------------------------
' Procedure : Form_Activate()
' DateTime  : 10/12/2005
' Purpose   : Set focus to Password textbox.
'---------------------------------------------------------------------------------------
'
Private Sub Form_Activate()
    txtPassword.SetFocus
End Sub
'---------------------------------------------------------------------------------------
' Procedure : Form_KeyDown()
' DateTime  : 10/12/2005
' Purpose   : Enter key pressed sends a TAB to move to next field
'---------------------------------------------------------------------------------------
'
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    If Not TypeOf Me.ActiveControl Is CommandButton Then
        If Shift = 0 And KeyCode = 13 Then
            SendKeys "{TAB}"
        End If
    End If
End Sub
'---------------------------------------------------------------------------------------
' Procedure : txtPassword_GotFocus()
' DateTime  : 10/12/2005
' Purpose   : Select all text when Password gets focus
'---------------------------------------------------------------------------------------
'
Private Sub txtPassword_GotFocus()
    Call SelectAllText(txtPassword)
End Sub
